package mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;
import pojo.User;

import java.util.List;

public interface UserMapper {
    List<User> selectAll();

    User selectOne(int id);

    void insertOne(User user);

    @Delete("DELETE FROM t_user WHERE id = #{id}")
    void deleteOne(int id);

    @Update("UPDATE t_user set username=#{username},fullname=#{fullname},password=#{password},address=#{address} WHERE id =#{id}")
    void updateOne(User user);
}
